<template>
	<view>
		<view class="head">
			<u-status-bar></u-status-bar>
			<view class="head__box">
				<view class="head__box__user">
					<image src="/static/cao/tx.png" class="head__box__user__tx" mode="aspectFill"></image>
					<view class="">
						<view class="head__box__user__name">
							时光匆匆
						</view>
						<view class="head__box__user__num">
							在线26人
						</view>
					</view>
					<view class="head__box__user__btn">
						关注
					</view>
				</view>
				<view class="u-flex u-flex-y-center">
					<image src="/static/cao/tx.png" class="head__box__user__tx" mode="aspectFill"
						v-for="(item,index) in 3" :key="index" style="margin-left: -15rpx;" :style="{zIndex:3-index}">
					</image>
					<image @click="back" src="/static/post/close-l.png" style="width: 25rpx;height: 26rpx;margin-left: 15rpx;"
						mode=""></image>
				</view>
			</view>
		</view>
		<view class="" style="position: relative;"
			:style="{height: 'calc(100vh - 72rpx - 80rpx - '+$u.addUnit($u.sys().statusBarHeight,'px')+')'}">
			<DomVideoPlayer ref="domVideoPlayer"
				src="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni-app-video-courses.mp4" autoplay loop muted />

		</view>
		<view class="" style="position: fixed;
		bottom: 0;
		left: 0;">
			<view class="barrage">
				<view class="barrage__item" v-for="(item,index) in 4" :key="index">
					<text style="color: #92B2CD;">未来世界:</text>小姐姐你一定会火哒。又有颜又 有才。加油加油加油加油。
				</view>
			</view>
			<view class="footer" :style="{paddingBottom:$u.addUnit($u.sys().safeAreaInsets.bottom,'px')}">
				<view class="footer__in">
					<input type="text" class="footer__inp" placeholder="发布评论..." placeholder-style="color:#FFFFFF;" />
					<view class="footer__btn">
						发布
					</view>
				</view>
				<view class="footer__cz" @click="show=true">
					<image src="/static/post/shop.png" style="width: 41rpx;height: 47rpx;" mode=""></image>
				</view>
				<view class="footer__cz">
					<image src="/static/post/zf.png" style="width: 44rpx;height: 34rpx;" mode=""></image>
				</view>
			</view>
		</view>
		<u-popup mode="bottom" :show="show" round="30rpx" @close="show=false">
			<view class="popbox">
				<view class="popbox__head">
					<u-search placeholder="输入关键词或序号" placeholderColor="#515151" :showAction="false" bgColor="#F0F4F7"
						v-model="value" height="73rpx"></u-search>
					<view class="popbox__head__car">
						<image src="/static/post/car.png" class="popbox__head__icon" mode=""></image>
						<view class="" style="margin-top: 10rpx;">
							购物车
						</view>
						
					</view>
				</view>
				<scroll-view scroll-y="true"
					:style="{height: 'calc(100% - 73rpx - 66rpx - '+$u.addUnit($u.sys().safeAreaInsets.bottom,'px')+')'}">
					<view class="popbox__list">
						<view class="popbox__item" v-for="(item,index) in 6" :key="index">
							<image src="/static/home/pic.png" class="popbox__item__pic" mode="aspectFill"></image>
							<view class="" style="flex: 1;">
								<view class="u-flex u-flex-between" style="padding-top: 10rpx;">
									<view class="popbox__item__name">
										夏海边收腰包臀裙
									</view>
									<view class="popbox__item__index">
										{{index+1}}
									</view>
								</view>
								<view class="u-flex u-flex-y-center" style="margin-top: 12rpx;">
									<view class="popbox__item__tag">
										库存1236
									</view>
									<view class="popbox__item__tag tag1">
										销量768
									</view>
								</view>
								<view class="u-flex u-flex-between u-flex-items-end" style="margin-top: 52rpx;">
									<view class="popbox__item__price">
										99.0
									</view>
									<view class="popbox__item__btn">
										<view class="popbox__item__addcar">
											<image src="/static/post/car.png" class="popbox__head__icon" mode=""></image>
										</view>
										<view class="popbox__item__buy">
											去抢购
										</view>
									</view>
								</view>
							</view>
						</view>
					</view>
				</scroll-view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
				value: ''
			};
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #000;
	}

	.head {
		&__box {
			padding: 40rpx 30rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			width: 690rpx;

			&__user {
				padding: 0 4rpx;
				height: 72rpx;
				background: rgba(253, 254, 255, .1);
				border-radius: 36rpx 36rpx 36rpx 36rpx;
				display: flex;
				align-items: center;

				&__tx {
					width: 63rpx;
					height: 63rpx;
					background: #42C03D;
					border-radius: 50%;
					margin-right: 10rpx;
				}

				&__name {
					font-family: PingFang-SC, PingFang-SC;
					font-weight: bold;
					font-size: 24rpx;
					color: #FFFFFF;
					line-height: 36rpx;
				}

				&__num {
					font-family: PingFang-SC, PingFang-SC;
					font-weight: 500;
					font-size: 18rpx;
					color: #FFFFFF;
					line-height: 36rpx;
				}

				&__btn {
					width: 68rpx;
					height: 48rpx;
					background: #E3432D;
					border-radius: 24rpx 24rpx 24rpx 24rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					margin-left: 44rpx;
					font-family: PingFang-SC, PingFang-SC;
					font-weight: 500;
					font-size: 20rpx;
					color: #FFFFFF;
					line-height: 20rpx;
				}
			}
		}
	}

	.footer {

		height: 113rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 30rpx 0 17rpx;
		z-index: 10078;
		background-color: #000000;
		width: 703rpx;

		&__in {
			width: 496rpx;
			height: 73rpx;
			background: rgba(1, 1, 1, .4);
			border-radius: 37rpx 37rpx 37rpx 37rpx;
			padding: 0 7rpx 0 41rpx;
			display: flex;
			align-items: center;
		}

		&__inp {
			flex: 1;
			font-family: PingFang-SC, PingFang-SC;
			font-weight: 500;
			font-size: 28rpx;
			color: #FFFFFF;
		}

		&__btn {
			width: 118rpx;
			height: 64rpx;
			background: #E3432D;
			border-radius: 32rpx 32rpx 32rpx 32rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			font-family: PingFang-SC, PingFang-SC;
			font-weight: 500;
			font-size: 24rpx;
			color: #FFFFFD;
			line-height: 24rpx;

		}

		&__cz {
			width: 70rpx;
			height: 70rpx;
			background: rgba(1, 1, 1, .4);
			border-radius: 35rpx 35rpx 35rpx 35rpx;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}

	.barrage {
		padding: 29rpx 20rpx;

		&__item {
			max-width: 440rpx;
			padding: 0 20rpx;
			background: rgba(1, 1, 1, .4);
			border-radius: 22rpx 22rpx 22rpx 22rpx;
			font-family: PingFang-SC, PingFang-SC;
			font-weight: 500;
			font-size: 27rpx;
			color: #EAEAEA;
			line-height: 47rpx;
			margin-top: 14rpx;
		}
	}

	.popbox {
		height: 80vh;

		&__head {
			padding: 33rpx 34rpx 33rpx 24rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;

			&__car {
				display: flex;
				flex-direction: column;
				align-items: center;
				font-family: PingFang-SC, PingFang-SC;
				font-weight: 500;
				font-size: 22rpx;
				color: #515151;
				line-height: 22rpx;
				margin-left: 25rpx;
			}

			&__icon {
				width: 34rpx;
				height: 31rpx;
				
			}
		}

		&__list {
			padding: 0 30rpx 2rpx;
		}
		&__item {
			display: flex;
			margin-bottom: 37rpx;
			&__pic {
				width: 207rpx;
				height: 210rpx;
				background: #896CAD;
				border-radius: 20rpx 20rpx 20rpx 20rpx;
				margin-right: 22rpx;
			}
		
			&__name {
				font-family: PingFang-SC, PingFang-SC;
				font-weight: bold;
				font-size: 30rpx;
				color: #1E1E1E;
				line-height: 30rpx;
			}
		
			&__index {
				width: 46rpx;
				height: 45rpx;
				background: #F0F4F7;
				border-radius: 8rpx 8rpx 8rpx 8rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				font-family: DINNextLTPro;
				font-weight: 500;
				font-size: 30rpx;
				color: #1E1E1E;
				line-height: 30rpx;
			}
		
			&__tag {
				padding: 0 8rpx;
				height: 34rpx;
				background: rgba(69, 196, 123, .1);
				border-radius: 5rpx 5rpx 5rpx 5rpx;
				font-family: PingFang-SC, PingFang-SC;
				font-weight: 500;
				font-size: 20rpx;
				color: #45C47B;
				line-height: 34rpx;
			}
		
			.tag1 {
				color: #E3432D;
				background: rgba(227, 67, 45, .1);
				margin-left: 8rpx;
			}
			&__price{
				font-family: DINNextLTPro;
				font-weight: 500;
				font-size: 38rpx;
				color: #FD2A00;
				line-height: 38rpx;
				&::before{
					content: "￥";
					font-family: PingFang-SC, PingFang-SC;
					font-weight: 800;
					font-size: 25rpx;
					color: #FD2A00;
					line-height: 25rpx;
				}
			}
			&__btn{
				background: #FF4D30;
				border-radius: 10rpx 10rpx 10rpx 10rpx;
				overflow: hidden;
				display: flex;
				align-items: center;
			}
			&__addcar{
				width: 82rpx;
				height: 63rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				background-color: #f0f4f7;
				-webkit-clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
				clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
			}
			&__buy{
				width: 161rpx;
				height: 63rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				font-family: PingFang-SC, PingFang-SC;
				font-weight: 500;
				font-size: 27rpx;
				color: #FFFFFF;
				line-height: 40rpx;
			}
		}
	}
</style>